<?php 
/* SVN FILE: $Id$ */
/* UserGroupLink Test cases generated on: 2009-07-07 02:07:22 : 1246935502*/
App::import('Model', 'UserGroupLink');

class UserGroupLinkTestCase extends CakeTestCase {
	var $UserGroupLink = null;
	var $fixtures = array('app.user_group_link', 'app.user', 'app.group');

	function startTest() {
		$this->UserGroupLink =& ClassRegistry::init('UserGroupLink');
	}

	function testUserGroupLinkInstance() {
		$this->assertTrue(is_a($this->UserGroupLink, 'UserGroupLink'));
	}

	function testUserGroupLinkFind() {
		$this->UserGroupLink->recursive = -1;
		$results = $this->UserGroupLink->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('UserGroupLink' => array(
			'id'  => 1,
			'user_id'  => 1,
			'group_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>